package java8_24.chongwu;

/**
 * @author oldliu
 * @since 1.0
 */
public class PetTest {
    public static void main(String[] args) {
        Dog d=new Dog("小五花","公",50,100);
        System.out.println("类别是："+d.getStrain());
        d.print();
        d.catchMouse();
        System.out.println(">>>>>>>>>>>>>>>>>");
        Penguin p=new Penguin("小蓝企鹅","母",90,100);
        p.print();
        p.swim();
        System.out.println(">>>>>>>>>>>>>>>>>>>>>>>>>>");
        Penguin p2=new Penguin();
        p2.print();
    }
}
